<template>
    <div class="nav-bar">
        <div class="left"><slot name="left"></slot></div>
        <div class="center"><slot name="center"></slot></div>
        <div class="rigth"><slot name="rigth"></slot></div>
    </div>
</template>

<script>
export default {
    name:'',
    //组件
    components: {
    },
}
</script>

<style scoped>
.nav-bar{
    display: flex;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background-color:var(--color-tint);
    font-size:18px;
    position: fixed;
    left: 0;
    right: 0;
    top:0;
    z-index:9;
}
.left,.rigth{
    width:50px;
}
.center{
    flex: 1;
}
</style>